<?xml version='1.0' encoding='UTF-8' ?>
<!--

    Copyright (c) 2014, 2019 Oracle and/or its affiliates. All rights reserved.

    This program and the accompanying materials are made available under the
    terms of the Eclipse Distribution License v. 1.0, which is available at
    http://www.eclipse.org/org/documents/edl-v10.php.

    SPDX-License-Identifier: BSD-3-Clause

-->

<ui:composition 
    xmlns="http://www.w3.org/1999/xhtml"
    xmlns:ui="http://xmlns.jcp.org/jsf/facelets"
    xmlns:h="http://xmlns.jcp.org/jsf/html"
    xmlns:f="http://xmlns.jcp.org/jsf/core"
    template="/template.xhtml"
    xmlns:util="http://java.sun.com/jsf/composite/util"
    xmlns:c="http://xmlns.jcp.org/jsp/jstl/core">

    <ui:define name="title">
        Home
    </ui:define>

    <ui:define name="body">
        <h:form>
            <h2>#{bundle.Welcome_Msg}</h2> <br />
            <c:choose id="wlcmsg">
                
                <c:when test="#{userController.authenticatedUser != null}">
                    <h4>#{bundle.Welcome_Logged_User}</h4>
                </c:when>              
                
                <c:otherwise>
                    <h4>#{bundle.Welcome_Signup_Phrase} <h:commandLink action="customer/Create.xhtml" value="#{bundle.Welcome_Signup_Button}" /></h4>                
                </c:otherwise>
                
            </c:choose>
            <br />
        </h:form>
    </ui:define> 

</ui:composition>
